matrix:
include:
- QT_VERSION: '5.15.2'
- XCODE_VERSION: '12.5.1'
+ XCODE_VERSION: '13.4.1'
GENERATOR: 'Ninja'
RELEASE: false
- os: macos-11
+ os: macos-12
- QT_VERSION: '6.2.4'
- XCODE_VERSION: '13.4.1'
+ XCODE_VERSION: '14.3.1'
GENERATOR: 'Xcode'
RELEASE: false
- os: macos-12
+ os: macos-13
- QT_VERSION: '6.2.4'
- XCODE_VERSION: '13.4.1'
+ XCODE_VERSION: '14.3.1'
GENERATOR: 'Ninja'
RELEASE: true
- os: macos-12
+ os: macos-13
- QT_VERSION: '6.5.3'
- XCODE_VERSION: '14.2'
+ XCODE_VERSION: '15.3'
GENERATOR: 'Ninja'
RELEASE: false
- os: macos-12
+ os: macos-14
steps:
- name: Checkout repository
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/setup-python@v5
with:
- python-version: '3.9'
+ python-version: '3.12'
- name: Qt install
if: steps.cache.outputs.cache-hit != 'true'
- name: Script
env:
- XML_CATALOG_FILES: /usr/local/etc/xml/catalog
+ XML_CATALOG_FILES: ${{ runner.arch == 'ARM64' && '/opt/homebrew/etc/xml/catalog' || '/usr/local/etc/xml/catalog' }}
run: |
source ${HOME}/Cache/qt-${{ matrix.QT_VERSION }}.env
sudo xcode-select --switch /Applications/Xcode_${{ matrix.XCODE_VERSION }}.app
TITLE=$2
SED="sed"
-# MacOS using Homebrew
-[ -f /usr/local/bin/gsed ] && SED=/usr/local/bin/gsed
-[ -f /opt/local/bin/gsed ] && SED=/opt/local/bin/gsed
+# macOS using Homebrew may be /usr/local (macOS intel) or /opt/homebrew (apple silicion) ...
+if command -v gsed >/dev/null 2>&1; then
+ SED=$(command -v gsed)
+fi
[ ! -d "$DIR/tpl" ] && mkdir -p "$DIR/tpl"